import service from '@/utils/request'


export const useDepSubmitApi = (data: any) => {
    if (data.id) return service.put('/sys/academy', data)
    else return service.post('/sys/academy', data)
}

export const useDepSelectApi = () => {
    return service.get('/select/academy')
}
